<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
	<meta charset="UTF-8">
	<title>详情</title>
	<meta name="description" content="">
	<meta name="keywords" content="">
	<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
	<meta name="format-detection" content="telephone=no,email=no,adress=no" />
	<meta name="apple-mobile-web-app-capable" content="yes" />  
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<link rel="stylesheet" href="{THEME_PATH}styles/swiper.min.css">
	<link rel="stylesheet" href="{THEME_PATH}styles/reset.css">
	<link rel="stylesheet" href="{THEME_PATH}styles/common.css">
	<link rel="stylesheet" href="{THEME_PATH}styles/style.css">	
</head>
<body>
	<!-- S header -->
	<header>
		<a href="index.php?m=user&c=goods&a=index" class="headerL iconfont">&#xe69f;</a>
		<h1>详情</h1>
	</header>
	<!-- E header -->
	
	<div>
		<img src="{THEME_PATH}images/img1.jpg" alt="" width="100%">
		<ul>
			<li class="flex order-detail-item">
				<label class="huafei"><?php echo $info['name']; ?></label>
				<div class="flex-1 alignR gf"><?php echo $info['price']; ?>GF</div>
			</li>
			<li class="flex order-detail-item">
				<label class="left">收货人</label>
				<input type="text" placeholder="" class="flex-1">
			</li>
			<li class="flex order-detail-item">
				<label class="left">电话</label>
				<input type="text" placeholder="" class="flex-1">
			</li>
			<li class="flex order-detail-item">
				<label class="left">充值号码</label>
				<input type="text" placeholder="" class="flex-1">
			</li>
		</ul>
		<a href="javascript:;" class="dh-btn">兑换</a>
	</div>

	<script src="{THEME_PATH}js/jquery-1.8.3.min.js"></script>
	<script src="{THEME_PATH}js/swiper.min.js"></script>
	<script src="/statics/js/layer/layer.js"></script>
	<script>
		$('.dh-btn').click(function(){
				var id = $(this).data('id');
				if()
				layer.confirm('确定要兑换吗?', {btn: ['是','否'] }, function(index){
					

					$.ajax({
						url:"/index.php/?m=user&c=goods&a=duihuan_goods",
						type:'post',
						data:{id:id},
						dataType:'json',
						success:function(data){
					
							if(data.status ==0){
								layer.msg(data.info);
							}else{
								layer.msg(data.info);
								setTimeout(function(){  //使用  setTimeout（）方法设定定时2000毫秒
									window.location.reload();//页面刷新
								},2000);
							}
						}
					})	
					layer.close(index);
				});
			})
	</script>
</body>